package com.yaowk.api.mall.clothing.service;

import com.yaowk.api.common.IBaseService;
import com.yaowk.api.common.PageReq;
import com.yaowk.api.common.PageResp;
import com.yaowk.api.mall.clothing.model.Order;
import com.yaowk.api.mall.clothing.web.OrderModel;
import com.yaowk.api.mall.clothing.web.OrderQueryModel;

public interface IOrderService extends IBaseService<Order, Long> {

    /**
     * 搜索订单列表
     *
     * @param orderQueryModel
     * @param pageReq
     * @return
     */
    PageResp<OrderModel> findAll(OrderQueryModel orderQueryModel, PageReq pageReq);

    /**
     * 确认收货
     *
     * @param id
     */
    void receive(Long id);

    /**
     * 发货
     *
     * @param id
     * @param expressNo
     */
    void send(Long id, String expressNo);

    /**
     * 关闭订单
     *
     * @param id
     */
    void close(Long id);
}
